package com.sinosoft.msf.base.supplier.pojo.entity;

import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.*;
import java.util.Date;

@Table(name = "s_request_log")
public class SRequestLog {
    /**
     * 主键 id
     */
    @Id
    private String id;

    /**
     * 创建人
     */
    @Column(name = "created_id")
    private String createdId;

    /**
     * 创建时间
     */
    @Column(name = "created_date")
    @ColumnType(jdbcType=JdbcType.TIMESTAMP)
    private Date createdDate;

    /**
     * 请求地址
     */
    @Column(name = "req_url")
    private String reqUrl;
    /**
     * 请求地址
     */
    @Column(name = "req_data")
    private String reqData;

    /**
     * 请求耗时
     */
    @Column(name = "res_code")
    private String reqCode;
    /**
     * 请求耗时
     */
    @Column(name = "res_http_state")
    private String resHttpState;
    /**
     * 返回报文
     */
    @Column(name = "res_data")
    private String resData;
    /**
     * 请求耗时
     */
    @Column(name = "res_cost")
    private String resCost;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreatedId() {
        return createdId;
    }

    public void setCreatedId(String createdId) {
        this.createdId = createdId;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getReqData() {
        return reqData;
    }

    public void setReqData(String reqData) {
        this.reqData = reqData;
    }

    public String getReqCode() {
        return reqCode;
    }

    public void setReqCode(String reqCode) {
        this.reqCode = reqCode;
    }

    public String getResHttpState() {
        return resHttpState;
    }

    public void setResHttpState(String resHttpState) {
        this.resHttpState = resHttpState;
    }

    public String getResData() {
        return resData;
    }

    public void setResData(String resData) {
        this.resData = resData;
    }

    public String getResCost() {
        return resCost;
    }

    public void setResCost(String resCost) {
        this.resCost = resCost;
    }
}